package com.modular.iot.action;

import cn.hutool.json.JSONUtil;
import com.ToolOpt;
import com.modular.iot.bo.IotModelBo;
import ntd.action.ActionAbs;
import ntd.action.bo.ActionInfo;
import ntd.action.bo.ActionOutBo;

public class ActionIotModel extends ActionAbs {

    @Override
    public ActionInfo info() {
        return new ActionInfo("IOT-物模型查询", "iot-model", new ActionIotModel());
    }

    @Override
    public ActionOutBo handle() {
        IotModelBo iotModelBo = ToolOpt.OPT_T_DEVICE.iotModel(actionInBo.getDataCode());
        return new ActionOutBo(iotModelBo);
    }
}
